.class final Lcom/brixd/niceapp/util/DownloadUtils$1;
.super Ljava/lang/Thread;
.source "DownloadUtils.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/util/DownloadUtils;->analysisDownloadClick(Ljava/lang/String;ILcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$appId:I

.field final synthetic val$channelClick:Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;

.field final synthetic val$source:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;Ljava/lang/String;I)V
    .registers 4

    .prologue
    .line 48
    iput-object p1, p0, Lcom/brixd/niceapp/util/DownloadUtils$1;->val$channelClick:Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;

    iput-object p2, p0, Lcom/brixd/niceapp/util/DownloadUtils$1;->val$source:Ljava/lang/String;

    iput p3, p0, Lcom/brixd/niceapp/util/DownloadUtils$1;->val$appId:I

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 5

    .prologue
    .line 50
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 51
    .local v0, "map":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    iget-object v1, p0, Lcom/brixd/niceapp/util/DownloadUtils$1;->val$channelClick:Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;

    sget-object v2, Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;->appstore:Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;

    if-ne v1, v2, :cond_38

    .line 52
    const-string v1, "store_name"

    iget-object v2, p0, Lcom/brixd/niceapp/util/DownloadUtils$1;->val$source:Ljava/lang/String;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 58
    :goto_12
    const-string v1, "app_id"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, p0, Lcom/brixd/niceapp/util/DownloadUtils$1;->val$appId:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 59
    invoke-static {}, Lcom/brixd/niceapp/application/NiceAppApplication;->getMyApplication()Lcom/brixd/niceapp/application/NiceAppApplication;

    move-result-object v1

    const-string v2, "nice_apps"

    iget-object v3, p0, Lcom/brixd/niceapp/util/DownloadUtils$1;->val$channelClick:Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;

    invoke-static {v1, v2, v3, v0}, Lcom/zuiapps/sdk/analytics/ZMMobClickAgent;->onClickEventNoUser(Landroid/content/Context;Ljava/lang/String;Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;Ljava/util/Map;)V

    .line 60
    return-void

    .line 53
    :cond_38
    iget-object v1, p0, Lcom/brixd/niceapp/util/DownloadUtils$1;->val$channelClick:Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;

    sget-object v2, Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;->direct:Lcom/zuiapps/sdk/analytics/constant/MobclickConstant$NiceChannelClick;

    if-ne v1, v2, :cond_46

    .line 54
    const-string v1, "store_name"

    const-string v2, "nice_apps"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_12

    .line 56
    :cond_46
    const-string v1, "store_name"

    const-string v2, "webview"

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_12
.end method
